#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018-12-05 17:06
# @Author  : 少爷

x = int(raw_input('请输入一个数:\n'))
a = x / 10000
b = x % 10000 / 1000
c = x % 1000 / 100
d = x % 100 / 10
e = x % 10

if a != 0:
    print "5 位数：", e, d, c, b, a
elif b != 0:
    print "4 位数：", e, d, c, b
elif c != 0:
    print "3 位数：", e, d, c
elif d != 0:
    print "2 位数：", e, d
elif e != 0:
    print "1 位数：", e